<div class="clearfix">
    <h1 class="bh_title"><span><?php echo $this->H1?></span></h1>
</div>

<form action="" method="post" name="theform">
<input type="hidden" name="page" value="<?php echo $this->page?>"/>
   <ul class="search_list_block">
        <li class="clearfix">
            <?php if ($this->ct==''):?>
            <select id="city" name="icity" onchange="form_change();">
                <option value="">Thành phố</option>
                <?php foreach ($this->ARR_CITY as $row):?>
                    <?php if ($this->icity==$row['id']):?>
                    <option value="<?php echo $row['id']?>" selected="selected"><?php echo $row['name']?></option>
                    <?php else:?>                    
                    <option value="<?php echo $row['id']?>"><?php echo $row['name']?></option>
                    <?php endif;?>
                <?php endforeach;?>
            </select>
            <?php endif;?>
            <?php if ($this->brd==''):?>
            <select id="brand" name="ibrand" onchange="form_change();">
                <option value="">Thương hiệu</option>
                <?php foreach ($this->ARR_FACTORY as $row):
                
                ?>
                    <?php if ($this->ibrand==$row['id'].''):?>
                    <option value="<?php echo $row['id']?>" selected="selected"><?php echo $row['name']?></option>
                    <?php else:?>
                    <option value="<?php echo $row['id']?>"><?php echo $row['name']?></option>
                    <?php endif;?>
                <?php endforeach;?>
            </select>
            <?php endif;?>
            <?php if ($this->pri==''):?>
            <select id="price" name="iprice" onchange="form_change();">
                <option value="">Giá</option>
                <?php foreach ($this->ARR_PRICE as $key=>$row):?>
                    <?php
                    $selected = ($this->iprice==$row['alias'])?'selected="selected"':'';
                    ?>
                    
                    <option value='<?php echo $row['alias']?>' <?php echo $selected;?>><?php echo $row['display']?></option>
                    
                                       
                    
                <?php endforeach;?>
            </select>
            <?php endif;?>
        </li>
   </ul>
</form>
<?php echo $this->PAGINATOR?>

<ul class="list clearfix">
	<?php echo $this->LIST?>
</ul>

    <?php echo $this->PAGINATOR?>
<script language="javascript">

function form_change(page){	
    if ( typeof(page) == 'undefined'){
        page = 1;
    }
    document.theform.page.value=page;
	document.theform.submit();
}
</script>    
                  